<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib"
	template="/templates/layout/columns_4.xhtml">

	<ui:define name="column1">

		<rich:tabPanel switchType="ajax">
			<rich:tab label="#{messages['label.account.settings']}">
				<br />
				<ui:include src="settings.xhtml" />
			</rich:tab>
			<rich:tab label="#{messages['label.my.objects']}"
				rendered="#{!identity.hasRole('1')}">
				<br />
				<ui:include src="objekti.xhtml" />
			</rich:tab>
			<rich:tab label="#{messages['label.my.images']}"
				rendered="#{identity.hasRole('2')}">
				<br />
				<ui:include src="slike.xhtml" />
			</rich:tab>
			<rich:tab label="#{messages['label.my.favorites']}"
				rendered="#{identity.hasRole('2')}">
				<br />
				<ui:include src="favoriti.xhtml" />
			</rich:tab>
			<rich:tab label="#{messages['label.my.reviews']}"
				rendered="#{identity.hasRole('2')}">
				<br />
				<ui:include src="dojmovi.xhtml" />
			</rich:tab>
			<rich:tab label="#{messages['label.my.events']}"
				rendered="#{identity.hasRole('2')}">
				<br />
				<ui:include src="dogadjaji.xhtml" />
			</rich:tab>
			<rich:tab label="#{messages['label.my.articles']}"
				rendered="#{identity.hasRole('2')}">
				<br />
				<ui:include src="objave.xhtml" />
			</rich:tab>
		</rich:tabPanel>
	</ui:define>
	<ui:define name="column2">

	</ui:define>
</ui:composition>